﻿@using Ed.Entity
@using Ed.Web.Helpers
@model  List<Dictionary<string, object>>
@{
    Layout = null; 
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>雪绒花_系统设置页面</title>
    <link href="../../../../Themes/default/home/css/index.css" rel="stylesheet" type="text/css" />
    <link href="/Themes/default/lib/artDialog/css/ui-dialog.css" rel="stylesheet" />
    <script src="~/Themes/default/lib/jquery/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/Themes/default/lib/artDialog/dist/dialog-plus-min.js"></script>
    <script src="/Themes/default/lib/function.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(function () {
            var m;
            $(".main li").hover(function () {
                m = $(this).index();
                $(".main li img").eq(m).animate({ width: "110px", marginTop: "0px" }, 200).animate({ width: "100px", marginTop: "5px" }, 200);
            }, function () {
                m = $(this).index();
                $(".main li img").eq(m).animate({ width: "90px", marginTop: "10px" }, 0);
            });

            var len = $(".main ul li").length;
            //alert(len);
            var wid = 182 * len;
            $(".main ul").css("width", wid + "px");
        });

        $(function () {
            $(".current-nav").mouseenter(function () {
                $(this).fadeOut(100, function () { $(".sidebar").animate({ left: "0" }, 300); });
            });
            $(".sidebar").mouseleave(function () {
                $(this).animate({ left: "-140px" }, 300, function () { $(".current-nav").fadeIn(0); });
            });
            var n;
            $(".sidebar li").hover(function () {
                n = $(this).index();
                $(".sidebar li img").eq(n).animate({ width: "70px", paddingTop: "0px" }, 200).animate({ width: "60px", paddingTop: "5px" }, 200);
            }, function () {
                n = $(this).index();
                $(".sidebar li img").eq(n).animate({ width: "50px", paddingTop: "10px" }, 0);
            });
        });
        function show_user() {
            showTopContentWindow("show_add", "/Settings/SysUser/List", "用户管理", 1000, 480, function () {
            });
        }
        function show_role() {
            showTopContentWindow("show_add", "/Settings/SysRole/List", "角色管理", 1000, 480, function () {
            });
        }
        function show_power() {
            showTopMsg("系统内置模块很重要，暂时不可管理！", "温馨提示", "Warn");
            //showTopContentWindow("show_add", "/Settings/SysPower/List", "权限管理", 1000, 480, function () {});
        }
        function show_department() {
            showTopContentWindow("show_add", "/Settings/SysDepartment/List", "组织架构", 1000, 480, function () {
            });
        }
        function show_data() {
            showTopContentWindow("show_add", "/Settings/DataBackup/List", "数据备份", 1000, 480, function () {
            });
        }
        function show_log() {
            showTopContentWindow("show_add", "/Settings/SysLog/List", "日志管理", 1000, 480, function () {
            });
        }
    </script>
    <!--固定顶部部分 开始-->
    <div class="header clearfix">
        <a href="javascript:void(0);" class="current-nav" style="display: block;"><em class="menu-more-ico">
        </em><span id="g_mod_name">系统设置</span> </a>
        <div class="vh-avator-area">
            <div class="gl-lang-container">
                <div class="account-avator">
                    <div class="account-avator-bg">
                    </div>
                </div>
                <span class="account-name" id="g_username2">@Session[EdKeys.SESSION_USER_NAME]（<b>@Session[EdKeys.SESSION_ROLE_NAME]</b>）<a
                    href="/Account/Login/Logout/">安全退出</a></span>
            </div>
        </div>
    </div>
    <!--固定顶部部分 结束-->
    <!--主页主题部分 开始-->
    <div class="main">
        <div class="main-container">
            <ul> 
               
                    <li onclick="show_user();">
                        <img src="~/Themes/default/home/images/setting_01.png"><span>用户管理</span></li>
@*   @if (Html.LoadModulePowers(@Model, "Customer_business"))
                {
                    <li onclick="show_role();">
                        <img src="~/Themes/default/home/images/setting_02.png"><span>角色管理</span></li>
                }
                @if (Html.LoadModulePowers(@Model, "Customer_maintenance"))
                {
                    <li onclick="show_power();">
                        <img src="~/Themes/default/home/images/setting_03.png"><span>权限管理</span></li>
                }
                @if (Html.LoadModulePowers(@Model, "Customer_list"))
                {
                    <li onclick="show_department();">
                        <img src="~/Themes/default/home/images/setting_04.png"><span>组织架构</span></li>
                }
                @if (Html.LoadModulePowers(@Model, "Customer_trash"))
                {
                    <li onclick="show_data();">
                        <img src="/Themes/default/home/images/setting_05.png"><span>数据管理</span></li>
                }
                @if (Html.LoadModulePowers(@Model, "Customer_trash"))
                {
                    <li onclick="show_log();">
                        <img src="~/Themes/default/home/images/setting_06.png"><span>操作日志</span></li>
                }*@
                @if (@Session[EdKeys.SESSION_ROLE_ID].ToString() == "1")
                {
                    <li onclick="show_role();">
                        <img src="~/Themes/default/home/images/setting_02.png"><span>角色管理</span></li>
                    <li onclick="show_power();">
                        <img src="~/Themes/default/home/images/setting_03.png"><span>权限管理</span></li>
                    <li onclick="show_department();">
                        <img src="~/Themes/default/home/images/setting_04.png"><span>组织架构</span></li>
                    <li onclick="show_data();">
                        <img src="/Themes/default/home/images/setting_05.png"><span>数据管理</span></li>
                    <li onclick="show_log();">
                        <img src="~/Themes/default/home/images/setting_06.png"><span>操作日志</span></li>
                }
                <div style="clear: both;">
                </div>
            </ul>
        </div>
    </div>
    <!--主页主题部分 结束-->
    <!--侧栏导航-->
    <ul class="sidebar">
        <li><a href="/">
            <img src="~/Themes/default/home/images/btn_06.png"><span>主页</span></a></li>
        @* @if (Html.LoadModulePowers(@Model, "Customer"))
         {
             <li><a href="/Home/Main/Customer/"><img src="~/Themes/default/home/images/home_btn_03.png"><span>客户管理</span></a></li>
         }*@ @*@if (Html.LoadModulePowers(@Model, "Order_add"))
        {
            <li><a href="/Order/Order/OrderAdd">
                <img src="~/Themes/default/home/images/order_01.png" /><span>新增订单</span></a></li>
        }*@
        @if (Html.LoadModulePowers(@Model, "Order"))
        {
            <li><a href="/Home/Main/Order/">
                <img src="~/Themes/default/home/images/home_btn_05.png" /><span>订单管理</span></a></li> 
        }
        @if (Html.LoadModulePowers(@Model, "Yuangong"))
        {
            <li><a href="/Home/Main/Yuangong/">
                <img src="~/Themes/default/home/images/home_btn_07.png" /><span>员工管理</span></a></li> 
        }
        @if (Html.LoadModulePowers(@Model, "Finance"))
        {
            <li><a href="/Home/Main/Finance/">
                <img src="~/Themes/default/home/images/home_btn_09.png" /><span>财务信息</span></a></li> 
        }
        @if (Html.LoadModulePowers(@Model, "Settings"))
        {
            <li><a href="/Home/Main/Seting/">
                <img src="~/Themes/default/home/images/home_btn_11.png" /><span>系统设置</span></a></li>
        }
    </ul>
</body>
</html>
